package com.yx.li.webviewdemo;

import android.webkit.JavascriptInterface;

public class ImoocJsInterface {

    private static final String TAG = "ImoocJsInterface";

    private JsBridge mJsBridge;

    public ImoocJsInterface(JsBridge jsBridge) {
        this.mJsBridge = jsBridge;
    }

    //这个方法不在主线程执行
    @JavascriptInterface
    public void setValue(String value) {
        mJsBridge.setTextValue(value);
    }

}
